package com.book.service;

import com.book.entity.Book;

import java.util.List;

public interface BookService {
    List<Book> listBooks();

    Integer countBooks();

    List<Book> listExistBooks();

    Integer minusBookNumber(Integer id);

    Integer getNumberById(Integer id);

    Integer insertBook(Book book);

    Book selectBookById(Integer id);

    void modifyBookNumber(Integer id, Integer number);

    void deleteById(Integer id);
}
